import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class WidgetSearchTextField extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Container(
      height: ScreenUtil().setHeight(60.0),
      width: ScreenUtil().setWidth(700.0),
      decoration: BoxDecoration(
        border: Border.all(
          color: Colors.black12,
          width: 0.5
        ),
        borderRadius:BorderRadius.all(Radius.circular(5.0))
      ),
      child: TextField(
        maxLines: 1,
        textAlign: TextAlign.left,
        decoration: InputDecoration(
          hintText: '请输入分组名称',
          border: InputBorder.none,
          contentPadding: EdgeInsets.only(left: 10.0,top: 8.0,bottom: 6.0),
          prefixIcon: Icon(Icons.search),
        ),
      ),
    );
  }

}